const path = require('path')
console.log(__filename)
console.log(path.basename(__filename))
console.log(path.basename('http://www.baidu.com/index.html'))
console.log(path.basename('E:/index.css'))

console.log(path.extname(__filename))
console.log(path.extname('http://www.baidu.com/index.html'))
console.log(path.extname('E:/index.css'))
